package com.ssm.zy.pojo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

@Component
@Data
public class User implements Serializable {//用户表
    private static final long serialVersionUID = 7569031833026436746L;
    private int id;
    private String name;//姓名
    private String username;//用户名
    private String password;//密码
    private String phone;//手机号
    private String photo;//头像
    private String gender;//性别
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;//生日
    private String address;//地址
    private int roleId;//角色id
    private int fans;//粉丝数量
    private int follow;//关注数量
    private int del;
}
